<!DOCTYPE html>
<html lang="zh-CN" class="ua-windows ua-webkit">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>
{% block title %}绿光照片分享{% endblock %}
</title>
<link href="/static/css/base.css" rel="stylesheet" type="text/css" media="all" />
<link rel="shortcut icon" href="/static/favicon.ico" type="image/x-icon">
{% block headerlink %}{% endblock %}
</head>

<body>
<div class="container">

<div class="header">

	<div class="logo">
	<a href="{{ request.HOME_PAGE_URL }}"><img src="/static/img/logo.gif" alt="绿光"></a>
	</div>
	
	<div class="searchform">
		<form action="{{ request.HOME_PAGE_URL }}search/" method="get">
		<input class="box-srh" type="text" name="q" accesskey="s" placeholder="标签、描述、作者">
		<input class="btn-srh" type="submit" value="" />
		</form>
	</div>
	
	<div class="nav">
		<ul class="menu green-link">
			<li><a href="{{ request.HOME_PAGE_URL }}">首页</a></li>
			<li><a href="{{ request.HOME_PAGE_URL }}explore/">探索</a></li>
			{% if request.user.is_authenticated %}
			<li><a href="{{ request.HOME_PAGE_URL }}photos/upload/">上传</a></li>	
			<li><a href="{{ request.HOME_PAGE_URL }}people/{{request.user.id}}/">我的绿光</a></li>
			{% endif %}
		</ul>
	</div>
	
	<div class="account">
		<ul class="menu green-link">
			{% if request.user.is_authenticated %}
			<li><a href="{{ request.HOME_PAGE_URL }}accounts/profile/">{{ request.user }}的帐号</a></li>
			<li><a href="{{ request.HOME_PAGE_URL }}accounts/logout/">登出</a></li>
			{% else %}
			<li><a href="{{ request.HOME_PAGE_URL }}accounts/login/">登录</a></li>
			<li><a href="{{ request.HOME_PAGE_URL }}accounts/register/">注册</a></li>
			{% endif %}

		</ul>
	</div>

</div>

<div class="content">
<div style="height:1px;"></div>
{% block content %}{% endblock %}
</div>

<div class="footer">
    <span class="fleft">
        &copy; 2012 grnglow.com, all rights reserved
    </span>
    
    <span class="fright blue-link">
          <a href="{{ request.HOME_PAGE_URL }}about/">关于绿光</a>
        · <a href="{{ request.HOME_PAGE_URL }}feedback/">建议反馈</a>
        · <a href="{{ request.HOME_PAGE_URL }}contact/">联系我们</a>
        · <a href="{{ request.HOME_PAGE_URL }}help/">帮助中心</a>
    </span>
</div>

</div>
</body>
</html>
